package com.guaju.yueshangLife.base;


import com.google.gson.annotations.SerializedName;
import com.guaju.yueshangLife.bean.TagsBean;

import java.io.Serializable;
import java.util.List;

public class GoodsDetail implements Serializable{


    /**
     * code : 200
     * msg : success
     * data : {"id":1,"category":{"id":8,"name":"派克","cover":{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},"children":[]},"price":{"current":"271.00","original":"2946.00","wholesale":"58.00"},"name":"Velit animi quis.","tags":[{"id":1,"name":"促销"},{"id":2,"name":"热销"},{"id":3,"name":"热门促销"},{"id":4,"name":"限时促销"},{"id":5,"name":"限时抢购"}],"attributes":[{"name":"颜色","values":{"1":"白色","2":"黑色"}},{"name":"尺寸","values":{"3":"S","4":"L"}}],"conpon":[],"count_sales":94,"images":[{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"}],"sku":[{"sku_id":1,"attributes":[1,3],"hash_key":"5F649E24AFCD658CCF64513A5CE71950","cover":{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},"price":{"current":"7450.00","original":"74500.00","wholesale":"3725.00"},"stock":152},{"sku_id":2,"attributes":[1,4],"hash_key":"F4201C65224377CF06FFDBF01B8172C1","cover":{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},"price":{"current":"860.00","original":"8600.00","wholesale":"430.00"},"stock":919},{"sku_id":3,"attributes":[2,3],"hash_key":"02EAA2934ADCABDCD2D34D09D9BDDD8C","cover":{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},"price":{"current":"4860.00","original":"48600.00","wholesale":"2430.00"},"stock":931},{"sku_id":4,"attributes":[2,4],"hash_key":"C604F559EC9C6F4A960C6E8829B2CE18","cover":{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},"price":{"current":"6920.00","original":"69200.00","wholesale":"3460.00"},"stock":225}]}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * id : 1
         * category : {"id":8,"name":"派克","cover":{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},"children":[]}
         * price : {"current":"271.00","original":"2946.00","wholesale":"58.00"}
         * name : Velit animi quis.
         * tags : [{"id":1,"name":"促销"},{"id":2,"name":"热销"},{"id":3,"name":"热门促销"},{"id":4,"name":"限时促销"},{"id":5,"name":"限时抢购"}]
         * attributes : [{"name":"颜色","values":{"1":"白色","2":"黑色"}},{"name":"尺寸","values":{"3":"S","4":"L"}}]
         * conpon : []
         * count_sales : 94
         * images : [{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"}]
         * sku : [{"sku_id":1,"attributes":[1,3],"hash_key":"5F649E24AFCD658CCF64513A5CE71950","cover":{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},"price":{"current":"7450.00","original":"74500.00","wholesale":"3725.00"},"stock":152},{"sku_id":2,"attributes":[1,4],"hash_key":"F4201C65224377CF06FFDBF01B8172C1","cover":{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},"price":{"current":"860.00","original":"8600.00","wholesale":"430.00"},"stock":919},{"sku_id":3,"attributes":[2,3],"hash_key":"02EAA2934ADCABDCD2D34D09D9BDDD8C","cover":{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},"price":{"current":"4860.00","original":"48600.00","wholesale":"2430.00"},"stock":931},{"sku_id":4,"attributes":[2,4],"hash_key":"C604F559EC9C6F4A960C6E8829B2CE18","cover":{"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"},"price":{"current":"6920.00","original":"69200.00","wholesale":"3460.00"},"stock":225}]
         */

        private int id;
        private CategoryBean category;
        private PriceBean price;
        private String name;
        private int count_sales;
        private List<TagsBean> tags;
        private List<AttributesBean> attributes;
        private List<?> conpon;
        private List<ImagesBean> images;
        private List<SkuBean> sku;
        private String summary;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getSummary() {
            return summary;
        }

        public void setSummary(String summary) {
            this.summary = summary;
        }

        public CategoryBean getCategory() {
            return category;
        }

        public void setCategory(CategoryBean category) {
            this.category = category;
        }

        public PriceBean getPrice() {
            return price;
        }

        public void setPrice(PriceBean price) {
            this.price = price;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getCount_sales() {
            return count_sales;
        }

        public void setCount_sales(int count_sales) {
            this.count_sales = count_sales;
        }

        public List<TagsBean> getTags() {
            return tags;
        }

        public void setTags(List<TagsBean> tags) {
            this.tags = tags;
        }

        public List<AttributesBean> getAttributes() {
            return attributes;
        }

        public void setAttributes(List<AttributesBean> attributes) {
            this.attributes = attributes;
        }

        public List<?> getConpon() {
            return conpon;
        }

        public void setConpon(List<?> conpon) {
            this.conpon = conpon;
        }

        public List<ImagesBean> getImages() {
            return images;
        }

        public void setImages(List<ImagesBean> images) {
            this.images = images;
        }

        public List<SkuBean> getSku() {
            return sku;
        }

        public void setSku(List<SkuBean> sku) {
            this.sku = sku;
        }

        public static class CategoryBean implements Serializable{
            /**
             * id : 8
             * name : 派克
             * cover : {"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"}
             * children : []
             */

            private int id;
            private String name;
            private CoverBean cover;
            private List<?> children;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public CoverBean getCover() {
                return cover;
            }

            public void setCover(CoverBean cover) {
                this.cover = cover;
            }

            public List<?> getChildren() {
                return children;
            }

            public void setChildren(List<?> children) {
                this.children = children;
            }

            public static class CoverBean implements Serializable{
                /**
                 * path : /tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim
                 * host : https://static.nfangxu.com
                 */

                private String path;
                private String host;

                public String getPath() {
                    return path;
                }

                public void setPath(String path) {
                    this.path = path;
                }

                public String getHost() {
                    return host;
                }

                public void setHost(String host) {
                    this.host = host;
                }
            }
        }

        public static class PriceBean implements Serializable {
            /**
             * current : 271.00
             * original : 2946.00
             * wholesale : 58.00
             */

            private String current;
            private String original;
            private String wholesale;

            public String getCurrent() {
                return current;
            }

            public void setCurrent(String current) {
                this.current = current;
            }

            public String getOriginal() {
                return original;
            }

            public void setOriginal(String original) {
                this.original = original;
            }

            public String getWholesale() {
                return wholesale;
            }

            public void setWholesale(String wholesale) {
                this.wholesale = wholesale;
            }
        }


        public static class AttributesBean implements Serializable {
            /**
             * name : 颜色
             * values : {"1":"白色","2":"黑色"}
             */

            private String name;
            private ValuesBean values;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public ValuesBean getValues() {
                return values;
            }

            public void setValues(ValuesBean values) {
                this.values = values;
            }

            public static class ValuesBean implements Serializable {
                /**
                 * 1 : 白色
                 * 2 : 黑色
                 */
                String data;

                public String getData() {
                    return data;
                }

                public void setData(String data) {
                    this.data = data;
                }
            }
        }

        public static class ImagesBean implements Serializable{
            /**
             * path : /tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim
             * host : https://static.nfangxu.com
             */

            private String path;
            private String host;

            public String getPath() {
                return path;
            }

            public void setPath(String path) {
                this.path = path;
            }

            public String getHost() {
                return host;
            }

            public void setHost(String host) {
                this.host = host;
            }
        }

        public static class SkuBean implements Serializable{
            /**
             * sku_id : 1
             * attributes : [1,3]
             * hash_key : 5F649E24AFCD658CCF64513A5CE71950
             * cover : {"path":"/tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim","host":"https://static.nfangxu.com"}
             * price : {"current":"7450.00","original":"74500.00","wholesale":"3725.00"}
             * stock : 152
             */

            private int sku_id;
            private String hash_key;
            private CoverBeanX cover;
            private PriceBeanX price;
            private int stock;
            private List<Integer> attributes;

            public int getSku_id() {
                return sku_id;
            }

            public void setSku_id(int sku_id) {
                this.sku_id = sku_id;
            }

            public String getHash_key() {
                return hash_key;
            }

            public void setHash_key(String hash_key) {
                this.hash_key = hash_key;
            }

            public CoverBeanX getCover() {
                return cover;
            }

            public void setCover(CoverBeanX cover) {
                this.cover = cover;
            }

            public PriceBeanX getPrice() {
                return price;
            }

            public void setPrice(PriceBeanX price) {
                this.price = price;
            }

            public int getStock() {
                return stock;
            }

            public void setStock(int stock) {
                this.stock = stock;
            }

            public List<Integer> getAttributes() {
                return attributes;
            }

            public void setAttributes(List<Integer> attributes) {
                this.attributes = attributes;
            }

            public static class CoverBeanX implements Serializable {
                /**
                 * path : /tmp/shop/images/0_42c6808a5599e556f39328680eb3ec32_583x585.jpg?imageslim
                 * host : https://static.nfangxu.com
                 */

                private String path;
                private String host;

                public String getPath() {
                    return path;
                }

                public void setPath(String path) {
                    this.path = path;
                }

                public String getHost() {
                    return host;
                }

                public void setHost(String host) {
                    this.host = host;
                }
            }

            public static class PriceBeanX implements Serializable{
                /**
                 * current : 7450.00
                 * original : 74500.00
                 * wholesale : 3725.00
                 */

                private String current;
                private String original;
                private String wholesale;

                public String getCurrent() {
                    return current;
                }

                public void setCurrent(String current) {
                    this.current = current;
                }

                public String getOriginal() {
                    return original;
                }

                public void setOriginal(String original) {
                    this.original = original;
                }

                public String getWholesale() {
                    return wholesale;
                }

                public void setWholesale(String wholesale) {
                    this.wholesale = wholesale;
                }
            }
        }
    }
}
